package factory;

/**
 * @auther 黄伟
 * @description
 * @date 2019/3/26
 */
public class TestMain {
    // java程序入口
    public static void main(String[] ages){
        FactoryParentImpl one = (FactoryParentImpl) AllFactory.getInstance("parent");
        one.show();
        FactoryChildImpl two = (FactoryChildImpl) AllFactory.getInstance("child");
        two.show();
        Other haha = (Other) AllFactory.getInstance("haha");
        haha.show();
    }
}
